package fr.afcepf.al23.qualite.exception;
/**
 * 
 * @author Stagiaire
 *
 */
public class QualityException extends Exception{

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    
    /**
     * 
     * @author Stagiaire
     *
     */
    private static enum ErrorCode {MAIL_EXISTE,COMMANDE_INVALIDE};
    
    private ErrorCode code;
    
    /**
     * @return the code
     */
    public ErrorCode getCode() {
        return code;
    }

    /**
     * @param paramCode the code to set
     */
    public void setCode(ErrorCode paramCode) {
        code = paramCode;
    }

    /**
     * @return the serialversionuid
     */
    public static long getSerialversionuid() {
        return serialVersionUID;
    }

    /**
     * 
     */
    public QualityException() {
        super();
        // TODO Auto-generated constructor stub
    }

    /**
     * @param paramMessage
     * @param paramCause
     * @param paramEnableSuppression
     * @param paramWritableStackTrace
     */
    public QualityException(String paramMessage, Throwable paramCause,
            boolean paramEnableSuppression, boolean paramWritableStackTrace) {
        super(paramMessage, paramCause, paramEnableSuppression, paramWritableStackTrace);
        // TODO Auto-generated constructor stub
    }

    /**
     * @param paramMessage
     * @param paramCause
     */
    public QualityException(String paramMessage, Throwable paramCause) {
        super(paramMessage, paramCause);
        // TODO Auto-generated constructor stub
    }

    /**
     * @param paramMessage
     */
    public QualityException(String paramMessage) {
        super(paramMessage);
        // TODO Auto-generated constructor stub
    }

    /**
     * @param paramCause
     */
    public QualityException(Throwable paramCause) {
        super(paramCause);
        // TODO Auto-generated constructor stub
    }

   

}
